package other_其他模式.business_delegate_pattern_业务代表模式;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: hihi
 * @Date: 2020/07/10/10:36
 * @Description:
 */
public class BusinessesLookUp {

	public BusinessesService getBusinessesService(String type) {
		if ("jms".equalsIgnoreCase(type)) {
			return new JMSBusinessesService();
		} else {
			return new EJBBusinessesService();
		}
	}
}
